package a.f.h.a.b;

import a.c.*;
import a.c.d;
import a.c.q;
import a.f.h.a.a.g;
import a.f.h.a.a.o;

public class e
{
  private b a;
  private q b;
  private a.f.h.a.a.b c;
  public static boolean d;
  
  public e(b paramb)
  {
    this.a = paramb;
    this.b = this.a.d();
    this.c = this.a.b();
  }
  
  public static ab a(b paramb)
  {
    e locale = new e(paramb);
    return locale.a();
  }
  
  public ab a()
  {
    boolean bool = b.i;
    int j = b.h;
    ab localab = new ab();
    this.a.h();
    d[] arrayOfd = this.b.u();
    do
    {
      for (int i = 0; j == 0; i++)
      {
        if (i >= arrayOfd.length) {
          break;
        }
        if (j != 0) {
          break label85;
        }
        if (a(arrayOfd[i]) != null) {
          localab.add(arrayOfd[i]);
        }
      }
      this.a.i();
    } while (bool);
    label85:
    return localab;
  }
  
  public ab a(d paramd)
  {
    boolean bool = b.i;
    int i = b.h;
    if (!bool)
    {
      if (!this.b.j(paramd)) {
        return null;
      }
      if (bool) {}
    }
    else if (this.a.a(paramd))
    {
      paramd = this.a.c(paramd);
    }
    d locald1 = this.a.c(paramd);
    ab localab = null;
    Object localObject1 = this.c.a(paramd.e());
    g localg1 = this.c.a(paramd.f());
    if (o.a((a.f.h.a.a.e)localObject1, localg1)) {
      return null;
    }
    z localz = new z();
    localab = new ab();
    this.a.a(paramd, localab);
    Object localObject2;
    do
    {
      while (i == 0)
      {
        if (localg1.g() <= ((g)localObject1).g()) {
          break;
        }
        localz.c(localg1);
        localg1 = (g)localg1.a();
      }
      localObject2 = null;
      Object localObject3 = null;
    } while (bool);
    Object localObject4 = null;
    d locald2;
    v localv;
    do
    {
      if (o.a((a.f.h.a.a.e)localObject1, localg1)) {
        break;
      }
      g localg2 = (g)((g)localObject1).a();
      locald2 = this.b.a(((g)localObject1).e(), localg2.e());
      this.a.k(locald2);
      if (i != 0) {
        break label338;
      }
      localv = localab.b(locald2);
      this.a.a(locald2, localv);
      if (!bool)
      {
        this.a.b(locald2, paramd);
        if (localObject2 == null) {}
      }
      else
      {
        this.a.c((d)localObject2, locald2);
      }
      if (!bool)
      {
        if (((g)localObject1).g() == localg1.g())
        {
          localz.c(localg1);
          localg1 = (g)localg1.a();
        }
        localObject2 = locald2;
        localObject1 = localg2;
      }
    } while (i == 0);
    label338:
    localz.c(localg1);
    if (!localz.isEmpty()) {
      localg1 = (g)localz.b();
    }
    label473:
    do
    {
      locald2 = this.b.a(((g)localObject1).e(), localg1.e());
      this.a.k(locald2);
      if (bool) {
        break label545;
      }
      localv = localab.b(locald2);
      this.a.a(locald2, localv);
      this.a.b(locald2, paramd);
      this.a.c(locald2, (d)localObject4);
      if (i != 0) {
        return localab;
      }
      if (!bool)
      {
        if (localObject2 != null)
        {
          if (bool) {
            break label473;
          }
          if (localObject4 == null) {
            this.a.c((d)localObject2, locald2);
          }
        }
        localObject4 = locald2;
      }
      localObject2 = locald2;
      localObject1 = localg1;
      if (i == 0) {
        break;
      }
      this.a.c(paramd.e(), paramd, localab.m());
      this.a.c(paramd.f(), locald1, this.a.c(localab.n()));
      this.b.f(paramd);
    } while (bool);
    this.b.f(locald1);
    label545:
    return localab;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.h.a.b.e

 * JD-Core Version:    0.7.0.1

 */